package com.favccxx.search.domain.common;

import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.Column;
import java.time.LocalDateTime;

/**
 * @author favccxx
 * @date 5/13/2020 4:04 PM
 */
@Data
public abstract class BaseDoc {

    @CreatedBy
    @Column(updatable = false)
    private String createUser;

    @CreatedDate
    @Column(updatable = false)
    private LocalDateTime createTime;

    @LastModifiedBy
    private String updateUser;

    @LastModifiedDate
    private LocalDateTime updateTime;
}
